home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / Development Tools & Languages / Macintosh Common Lisp Related / interfaces / PInterface Translator / PInterfaces / SysEqu.p < prev    next >
Encoding:
Text File  |  1993-09-16  |  28.0 KB  |  437 lines  |  [TEXT/MPS ]

  1. {
  2. Created: Sunday, January 6, 1991 at 11:20 PM
  3.     SysEqu.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.         Copyright Apple Computer, Inc.    1985-90
  7.         All rights reserved
  8.  
  9. }
  10.  
  11.  
  12. {$IFC UNDEFINED UsingIncludes}
  13. {$SETC UsingIncludes := 0}
  14. {$ENDC}
  15.  
  16. {$IFC NOT UsingIncludes}
  17.     UNIT SysEqu;
  18.     INTERFACE
  19. {$ENDC}
  20.  
  21. {$IFC UNDEFINED UsingSysEqu}
  22. {$SETC UsingSysEqu := 1}
  23.  
  24.  
  25. CONST
  26. PCDeskPat = $20B;               {[GLOBAL VAR]  desktop pat, top bit only! others are in use}
  27. HiKeyLast = $216;               {[GLOBAL VAR]  Same as KbdVars}
  28. KbdLast = $218;                 {[GLOBAL VAR]  Same as KbdVars+2}
  29. ExpandMem = $2B6;               {[GLOBAL VAR]  pointer to expanded memory block}
  30. SCSIBase = $0C00;               {[GLOBAL VAR]  (long) base address for SCSI chip read}
  31. SCSIDMA = $0C04;                {[GLOBAL VAR]  (long) base address for SCSI DMA}
  32. SCSIHsk = $0C08;                {[GLOBAL VAR]  (long) base address for SCSI handshake}
  33. SCSIGlobals = $0C0C;            {[GLOBAL VAR]  (long) ptr for SCSI mgr locals}
  34. RGBBlack = $0C10;               {[GLOBAL VAR]  (6 bytes) the black field for color}
  35. RGBWhite = $0C16;               {[GLOBAL VAR]  (6 bytes) the white field for color}
  36. RowBits = $0C20;                {[GLOBAL VAR]  (word) screen horizontal pixels}
  37. ColLines = $0C22;               {[GLOBAL VAR]  (word) screen vertical pixels}
  38. ScreenBytes = $0C24;            {[GLOBAL VAR]  (long) total screen bytes}
  39. NMIFlag = $0C2C;                {[GLOBAL VAR]  (byte) flag for NMI debounce}
  40. VidType = $0C2D;                {[GLOBAL VAR]  (byte) video board type ID}
  41. VidMode = $0C2E;                {[GLOBAL VAR]  (byte) video mode (4=4bit color)}
  42. SCSIPoll = $0C2F;               {[GLOBAL VAR]  (byte) poll for device zero only once.}
  43. SEVarBase = $0C30;              {[GLOBAL VAR] }
  44. MMUFlags = $0CB0;               {[GLOBAL VAR]  (byte) cleared to zero (reserved for future use)}
  45. MMUType = $0CB1;                {[GLOBAL VAR]  (byte) kind of MMU present}
  46. MMU32bit = $0CB2;               {[GLOBAL VAR]  (byte) boolean reflecting current machine MMU mode}
  47. MMUFluff = $0CB3;               {[GLOBAL VAR]  (byte) fluff byte forced by reducing MMUMode to MMU32bit.}
  48. MMUTbl = $0CB4;                 {[GLOBAL VAR]  (long) pointer to MMU Mapping table}
  49. MMUTblSize = $0CB8;             {[GLOBAL VAR]  (long) size of the MMU mapping table}
  50. SInfoPtr = $0CBC;               {[GLOBAL VAR]  (long) pointer to Slot manager information}
  51. ASCBase = $0CC0;                {[GLOBAL VAR]  (long) pointer to Sound Chip}
  52. SMGlobals = $0CC4;              { (long) pointer to Sound Manager Globals}
  53. TheGDevice = $0CC8;             {[GLOBAL VAR]  (long) the current graphics device}
  54. CQDGlobals = $0CCC;             { (long) quickDraw global extensions}
  55. ADBBase = $0CF8;                {[GLOBAL VAR]  (long) pointer to Front Desk Buss Variables}
  56. WarmStart = $0CFC;              {[GLOBAL VAR]  (long) flag to indicate it is a warm start}
  57. TimeDBRA = $0D00;               {[GLOBAL VAR]  (word) number of iterations of DBRA per millisecond}
  58. TimeSCCDB = $0D02;              {[GLOBAL VAR]  (word) number of iter's of SCC access & DBRA.}
  59. SlotQDT = $0D04;                {[GLOBAL VAR]  ptr to slot queue table}
  60. SlotPrTbl = $0D08;              {[GLOBAL VAR]  ptr to slot priority table}
  61. SlotVBLQ = $0D0C;               {[GLOBAL VAR]  ptr to slot VBL queue table}
  62. ScrnVBLPtr = $0D10;             {[GLOBAL VAR]  save for ptr to main screen VBL queue}
  63. SlotTICKS = $0D14;              {[GLOBAL VAR]  ptr to slot tickcount table}
  64. TableSeed = $0D20;              {[GLOBAL VAR]  (long) seed value for color table ID's}
  65. SRsrcTblPtr = $0D24;            {[GLOBAL VAR]  (long) pointer to slot resource table.}
  66. JVBLTask = $0D28;               {[GLOBAL VAR]  vector to slot VBL task interrupt handler}
  67. WMgrCPort = $0D2C;              {[GLOBAL VAR]  window manager color port }
  68. VertRRate = $0D30;              {[GLOBAL VAR]  (word) Vertical refresh rate for start manager. }
  69. ChunkyDepth = $0D60;            {[GLOBAL VAR]  depth of the pixels}
  70. CrsrPtr = $0D62;                {[GLOBAL VAR]  pointer to cursor save area}
  71. PortList = $0D66;               {[GLOBAL VAR]  list of grafports}
  72. MickeyBytes = $0D6A;            {[GLOBAL VAR]  long pointer to cursor stuff}
  73. QDErrLM = $0D6E;                {[GLOBAL VAR] QDErr has name conflict w/ type. QuickDraw error code [word]}
  74. VIA2DT = $0D70;                 {[GLOBAL VAR]  32 bytes for VIA2 dispatch table for NuMac}
  75. SInitFlags = $0D90;             {[GLOBAL VAR]  StartInit.a flags [word]}
  76. DTQueue = $0D92;                {[GLOBAL VAR]  (10 bytes) deferred task queue header}
  77. DTQFlags = $0D92;               {[GLOBAL VAR]  flag word for DTQueue}
  78. DTskQHdr = $0D94;               {[GLOBAL VAR]  ptr to head of queue}
  79. DTskQTail = $0D98;              {[GLOBAL VAR]  ptr to tail of queue}
  80. JDTInstall = $0D9C;             {[GLOBAL VAR]  (long) ptr to deferred task install routine}
  81. HiliteRGB = $0DA0;              {[GLOBAL VAR]  6 bytes: rgb of hilite color}
  82. TimeSCSIDB = $0DA6;             {[GLOBAL VAR]  (word) number of iter's of SCSI access & DBRA}
  83. DSCtrAdj = $0DA8;               {[GLOBAL VAR]  (long) Center adjust for DS rect.}
  84. IconTLAddr = $0DAC;             {[GLOBAL VAR]  (long) pointer to where start icons are to be put.}
  85. VideoInfoOK = $0DB0;            {[GLOBAL VAR]  (long) Signals to CritErr that the Video card is ok}
  86. EndSRTPtr = $0DB4;              {[GLOBAL VAR]  (long) Pointer to the end of the Slot Resource Table (Not the SRT buffer).}
  87. SDMJmpTblPtr = $0DB8;           {[GLOBAL VAR]  (long) Pointer to the SDM jump table}
  88. JSwapMMU = $0DBC;               {[GLOBAL VAR]  (long) jump vector to SwapMMU routine}
  89. SdmBusErr = $0DC0;              {[GLOBAL VAR]  (long) Pointer to the SDM busErr handler}
  90. LastTxGDevice = $0DC4;          {[GLOBAL VAR]  (long) copy of TheGDevice set up for fast text measure}
  91. NewCrsrJTbl = $88C;             {[GLOBAL VAR]  location of new crsr jump vectors}
  92. JAllocCrsr = $88C;              {[GLOBAL VAR]  (long) vector to routine that allocates cursor}
  93. JSetCCrsr = $890;               {[GLOBAL VAR]  (long) vector to routine that sets color cursor}
  94. JOpcodeProc = $894;             {[GLOBAL VAR]  (long) vector to process new picture opcodes}
  95. CrsrBase = $898;                {[GLOBAL VAR]  (long) scrnBase for cursor}
  96. CrsrDevice = $89C;              {[GLOBAL VAR]  (long) current cursor device}
  97. SrcDevice = $8A0;               {[GLOBAL VAR]  (LONG) Src device for Stretchbits}
  98. MainDevice = $8A4;              {[GLOBAL VAR]  (long) the main screen device}
  99. DeviceList = $8A8;              {[GLOBAL VAR]  (long) list of display devices}
  100. CrsrRow = $8AC;                 {[GLOBAL VAR]  (word) rowbytes for current cursor screen}
  101. QDColors = $8B0;                {[GLOBAL VAR]  (long) handle to default colors}
  102. HiliteMode = $938;              {[GLOBAL VAR]  used for color highlighting}
  103. BusErrVct = $08;                {[GLOBAL VAR]  bus error vector}
  104. RestProc = $A8C;                {[GLOBAL VAR]  Resume procedure f InitDialogs [pointer]}
  105. ROM85 = $28E;                   {[GLOBAL VAR]  (word) actually high bit - 0 for ROM vers $75 (sic) and later}
  106. ROMMapHndl = $B06;              {[GLOBAL VAR]  (long) handle of ROM resource map}
  107. ScrVRes = $102;                 {[GLOBAL VAR] Pixels per inch vertically (word)
  108.    screen vertical dots/inch [word]}
  109. ScrHRes = $104;                 {[GLOBAL VAR] Pixels per inch horizontally (word)
  110.    screen horizontal dots/inch [word]}
  111. ScrnBase = $824;                {[GLOBAL VAR] Address of main screen buffer
  112.    Screen Base [pointer]}
  113. ScreenRow = $106;               {[GLOBAL VAR]  rowBytes of screen [word]}
  114. MBTicks = $16E;                 {[GLOBAL VAR]  tick count @ last mouse button [long]}
  115. JKybdTask = $21A;               {[GLOBAL VAR]  keyboard VBL task hook [pointer]}
  116. KeyLast = $184;                 {[GLOBAL VAR]  ASCII for last valid keycode [word]}
  117. KeyTime = $186;                 {[GLOBAL VAR]  tickcount when KEYLAST was rec'd [long]}
  118. KeyRepTime = $18A;              {[GLOBAL VAR]  tickcount when key was last repeated [long]}
  119. SPConfig = $1FB;                {[GLOBAL VAR] Use types for serial ports (byte)
  120.    config bits: 4-7 A, 0-3 B (see use type below)}
  121. SPPortA = $1FC;                 {[GLOBAL VAR] Modem port configuration (word)
  122.    SCC port A configuration [word]}
  123. SPPortB = $1FE;                 {[GLOBAL VAR] Printer port configuration (word)
  124.    SCC port B configuration [word]}
  125. SCCRd = $1D8;                   {[GLOBAL VAR] SCC read base address
  126.    SCC base read address [pointer]}
  127. SCCWr = $1DC;                   {[GLOBAL VAR] SCC write base address
  128.    SCC base write address [pointer]}
  129. DoubleTime = $2F0;              {[GLOBAL VAR] Double-click interval in ticks (long)
  130.    double click ticks [long]}
  131. CaretTime = $2F4;               {[GLOBAL VAR] Caret-blink interval in ticks (long)
  132.    caret blink ticks [long]}
  133. KeyThresh = $18E;               {[GLOBAL VAR] Auto-key threshold (word)
  134.    threshold for key repeat [word]}
  135. KeyRepThresh = $190;            {[GLOBAL VAR] Auto-key rate (word)
  136.    key repeat speed [word]}
  137. SdVolume = $260;                {[GLOBAL VAR] Current speaker volume (byte:  low-order three bits only)
  138.    Global volume(sound) control [byte]}
  139. Ticks = $16A;                   {[GLOBAL VAR] Current number of ticks since system startup (long)
  140.    Tick count, time since boot [unsigned long]}
  141. TimeLM = $20C;                  {[GLOBAL VAR] Time has name conflict w/ type. Clock time (extrapolated) [long]}
  142. MonkeyLives = $100;             {[GLOBAL VAR]  monkey lives if >= 0 [word]}
  143. SEvtEnb = $15C;                 {[GLOBAL VAR] 0 if SystemEvent should return FALSE (byte)
  144.    enable SysEvent calls from GNE [byte]}
  145. JournalFlag = $8DE;             {[GLOBAL VAR] Journaling mode (word)
  146.    journaling state [word]}
  147. JournalRef = $8E8;              {[GLOBAL VAR] Reference number of journaling device driver (word)
  148.    Journalling driver's refnum [word]}
  149. BufPtr = $10C;                  {[GLOBAL VAR] Address of end of jump table
  150.    top of application memory [pointer]}
  151. StkLowPt = $110;                {[GLOBAL VAR]  Lowest stack as measured in VBL task [pointer]}
  152. TheZone = $118;                 {[GLOBAL VAR] Address of current heap zone
  153.    current heap zone [pointer]}
  154. ApplLimit = $130;               {[GLOBAL VAR] Application heap limit
  155.    application limit [pointer]}
  156. SysZone = $2A6;                 {[GLOBAL VAR] Address of system heap zone
  157.    system heap zone [pointer]}
  158. ApplZone = $2AA;                {[GLOBAL VAR] Address of application heap zone
  159.    application heap zone [pointer]}
  160. HeapEnd = $114;                 {[GLOBAL VAR] Address of end of application heap zone
  161.    end of heap [pointer]}
  162. HiHeapMark = $BAE;              {[GLOBAL VAR]  (long) highest address used by a zone below sp<01Nov85 JTC>}
  163. MemErr = $220;                  {[GLOBAL VAR]  last memory manager error [word]}
  164. UTableBase = $11C;              {[GLOBAL VAR] Base address of unit table
  165.    unit I/O table [pointer]}
  166. UnitNtryCnt = $1D2;             {[GLOBAL VAR]  count of entries in unit table [word]}
  167. JFetch = $8F4;                  {[GLOBAL VAR] Jump vector for Fetch function
  168.    fetch a byte routine for drivers [pointer]}
  169. JStash = $8F8;                  {[GLOBAL VAR] Jump vector for Stash function
  170.    stash a byte routine for drivers [pointer]}
  171. JIODone = $8FC;                 {[GLOBAL VAR] Jump vector for IODone function
  172.    IODone entry location [pointer]}
  173. DrvQHdr = $308;                 {[GLOBAL VAR] Drive queue header (10 bytes)
  174.    queue header of drives in system [10 bytes]}
  175. BootDrive = $210;               {[GLOBAL VAR]  drive number of boot drive [word]}
  176. EjectNotify = $338;             {[GLOBAL VAR]  eject notify procedure [pointer]}
  177. IAZNotify = $33C;               {[GLOBAL VAR]  world swaps notify procedure [pointer]}
  178. SFSaveDisk = $214;              {[GLOBAL VAR] Negative of volume reference number used by Standard File Package (word)
  179.    last vRefNum seen by standard file [word]}
  180. CurDirStore = $398;             {[GLOBAL VAR]  save dir across calls to Standard File [long]}
  181. OneOne = $A02;                  {[GLOBAL VAR] $00010001
  182.    constant $00010001 [long]}
  183. MinusOne = $A06;                {[GLOBAL VAR] $FFFFFFFF
  184.    constant $FFFFFFFF [long]}
  185. Lo3Bytes = $31A;                {[GLOBAL VAR] $00FFFFFF
  186.    constant $00FFFFFF [long]}
  187. ROMBase = $2AE;                 {[GLOBAL VAR] Base address of ROM
  188.    ROM base address [pointer]}
  189. RAMBase = $2B2;                 {[GLOBAL VAR] Trap dispatch table's base address for routines in RAM
  190.    RAM base address [pointer]}
  191. SysVersion = $15A;              {[GLOBAL VAR]  version # of RAM-based system [word]}
  192. RndSeed = $156;                 {[GLOBAL VAR] Random number seed (long)
  193.    random seed/number [long]}
  194. Scratch20 = $1E4;               {[GLOBAL VAR] 20-byte scratch area
  195.    scratch [20 bytes]}
  196. Scratch8 = $9FA;                {[GLOBAL VAR] 8-byte scratch area
  197.    scratch [8 bytes]}
  198. ScrapSize = $960;               {[GLOBAL VAR] Size in bytes of desk scrap (long)
  199.    scrap length [long]}
  200. ScrapHandle = $964;             {[GLOBAL VAR] Handle to desk scrap in memory
  201.    memory scrap [handle]}
  202. ScrapCount = $968;              {[GLOBAL VAR] Count changed by ZeroScrap (word)
  203.    validation byte [word]}
  204. ScrapState = $96A;              {[GLOBAL VAR] Tells where desk scrap is (word)
  205.    scrap state [word]}
  206. ScrapName = $96C;               {[GLOBAL VAR] Pointer to scrap file name (preceded by length byte)
  207.    pointer to scrap name [pointer]}
  208. IntlSpec = $BA0;                {[GLOBAL VAR]  (long) - ptr to extra Intl data }
  209. SwitcherTPtr = $286;            {[GLOBAL VAR]  Switcher's switch table }
  210. CPUFlag = $12F;                 {[GLOBAL VAR]  $00=68000, $01=68010, $02=68020 (old ROM inits to $00)}
  211. VIA = $1D4;                     {[GLOBAL VAR] VIA base address
  212.    VIA base address [pointer]}
  213. IWM = $1E0;                     {[GLOBAL VAR]  IWM base address [pointer]}
  214. Lvl1DT = $192;                  {[GLOBAL VAR] Level-1 secondary interrupt vector table (32 bytes)
  215.    Interrupt level 1 dispatch table [32 bytes]}
  216. Lvl2DT = $1B2;                  {[GLOBAL VAR] Level-2 secondary interrupt vector table (32 bytes)
  217.    Interrupt level 2 dispatch table [32 bytes]}
  218. ExtStsDT = $2BE;                {[GLOBAL VAR] External/status interrupt vector table (16 bytes)
  219.    SCC ext/sts secondary dispatch table [16 bytes]}
  220. SPValid = $1F8;                 {[GLOBAL VAR] Validity status (byte)
  221.    validation field ($A7) [byte]}
  222. SPATalkA = $1F9;                {[GLOBAL VAR] AppleTalk node ID hint for modem port (byte)
  223.    AppleTalk node number hint for port A}
  224. SPATalkB = $1FA;                {[GLOBAL VAR] AppleTalk node ID hint for printer port (byte)
  225.    AppleTalk node number hint for port B}
  226. SPAlarm = $200;                 {[GLOBAL VAR] Alarm setting (long)
  227.    alarm time [long]}
  228. SPFont = $204;                  {[GLOBAL VAR] Application font number minus 1 (word)
  229.    default application font number minus 1 [word]}
  230. SPKbd = $206;                   {[GLOBAL VAR] Auto-key threshold and rate (byte)
  231.    kbd repeat thresh in 4/60ths [2 4-bit]}
  232. SPPrint = $207;                 {[GLOBAL VAR] Printer connection (byte)
  233.    print stuff [byte]}
  234. SPVolCtl = $208;                {[GLOBAL VAR] Speaker volume setting in parameter RAM (byte)
  235.    volume control [byte]}
  236. SPClikCaret = $209;             {[GLOBAL VAR] Double-click and caret-blink times (byte)
  237.    double click/caret time in 4/60ths[2 4-bit]}
  238. SPMisc1 = $20A;                 {[GLOBAL VAR]  miscellaneous [1 byte]}
  239. SPMisc2 = $20B;                 {[GLOBAL VAR] Mouse scaling, system startup disk, menu blink (byte)
  240.    miscellaneous [1 byte]}
  241. GetParam = $1E4;                {[GLOBAL VAR]  system parameter scratch [20 bytes]}
  242. SysParam = $1F8;                {[GLOBAL VAR] Low-memory copy of parameter RAM (20 bytes)
  243.    system parameter memory [20 bytes]}
  244. CrsrThresh = $8EC;              {[GLOBAL VAR] Mouse-scaling threshold (word) 
  245.    delta threshold for mouse scaling [word]}
  246. JCrsrTask = $8EE;               {[GLOBAL VAR]  address of CrsrVBLTask [long]}
  247. MTemp = $828;                   {[GLOBAL VAR]  Low-level interrupt mouse location [long]}
  248. RawMouse = $82C;                {[GLOBAL VAR]  un-jerked mouse coordinates [long]}
  249. CrsrRect = $83C;                {[GLOBAL VAR]  Cursor hit rectangle [8 bytes]}
  250. TheCrsr = $844;                 {[GLOBAL VAR]  Cursor data, mask & hotspot [68 bytes]}
  251. CrsrAddr = $888;                {[GLOBAL VAR]  Address of data under cursor [long]}
  252. CrsrSave = $88C;                {[GLOBAL VAR]  data under the cursor [64 bytes]}
  253. CrsrVis = $8CC;                 {[GLOBAL VAR]  Cursor visible? [byte]}
  254. CrsrBusy = $8CD;                {[GLOBAL VAR]  Cursor locked out? [byte]}
  255. CrsrNew = $8CE;                 {[GLOBAL VAR]  Cursor changed? [byte]}
  256. CrsrState = $8D0;               {[GLOBAL VAR]  Cursor nesting level [word]}
  257. CrsrObscure = $8D2;             {[GLOBAL VAR]  Cursor obscure semaphore [byte]}
  258. KbdVars = $216;                 {[GLOBAL VAR]  Keyboard manager variables [4 bytes]}
  259. KbdType = $21E;                 {[GLOBAL VAR]  keyboard model number [byte]}
  260. MBState = $172;                 {[GLOBAL VAR]  current mouse button state [byte]}
  261. KeyMapLM = $174;                {[GLOBAL VAR] KeyMap has name conflict w/ type. Bitmap of the keyboard [4 longs]}
  262. KeypadMap = $17C;               {[GLOBAL VAR]  bitmap for numeric pad-18bits [long]}
  263. Key1Trans = $29E;               {[GLOBAL VAR]  keyboard translator procedure [pointer]}
  264. Key2Trans = $2A2;               {[GLOBAL VAR]  numeric keypad translator procedure [pointer]}
  265. JGNEFilter = $29A;              {[GLOBAL VAR]  GetNextEvent filter proc [pointer]}
  266. KeyMVars = $B04;                {[GLOBAL VAR]  (word) for ROM KEYM proc state}
  267. Mouse = $830;                   {[GLOBAL VAR]  processed mouse coordinate [long]}
  268. CrsrPin = $834;                 {[GLOBAL VAR]  cursor pinning rectangle [8 bytes]}
  269. CrsrCouple = $8CF;              {[GLOBAL VAR]  cursor coupled to mouse? [byte]}
  270. CrsrScale = $8D3;               {[GLOBAL VAR]  cursor scaled? [byte]}
  271. MouseMask = $8D6;               {[GLOBAL VAR]  V-H mask for ANDing with mouse [long]}
  272. MouseOffset = $8DA;             {[GLOBAL VAR]  V-H offset for adding after ANDing [long]}
  273. AlarmState = $21F;              {[GLOBAL VAR]  Bit7=parity, Bit6=beeped, Bit0=enable [byte]}
  274. VBLQueue = $160;                {[GLOBAL VAR] Vertical retrace queue header (10 bytes)
  275.    VBL queue header [10 bytes]}
  276. SysEvtMask = $144;              {[GLOBAL VAR] System event mask (word)
  277.    system event mask [word]}
  278. SysEvtBuf = $146;               {[GLOBAL VAR]  system event queue element buffer [pointer]}
  279. EventQueue = $14A;              {[GLOBAL VAR] Event queue header (10 bytes)
  280.    event queue header [10 bytes]}
  281. EvtBufCnt = $154;               {[GLOBAL VAR]  max number of events in SysEvtBuf - 1 [word]}
  282. GZRootHnd = $328;               {[GLOBAL VAR] Handle to relocatable block not to be moved by grow zone function
  283.    root handle for GrowZone [handle]}
  284. GZRootPtr = $32C;               {[GLOBAL VAR]  root pointer for GrowZone [pointer]}
  285. GZMoveHnd = $330;               {[GLOBAL VAR]  moving handle for GrowZone [handle]}
  286. MemTop = $108;                  {[GLOBAL VAR] Address of end of RAM (on Macintosh XL, end of RAM available to applications)
  287.    top of memory [pointer]}
  288. MmInOK = $12E;                  {[GLOBAL VAR]  initial memory mgr checks ok? [byte]}
  289. HpChk = $316;                   {[GLOBAL VAR]  heap check RAM code [pointer]}
  290. MaskBC = $31A;                  {[GLOBAL VAR]  Memory Manager Byte Count Mask [long]}
  291. MaskHandle = $31A;              {[GLOBAL VAR]  Memory Manager Handle Mask [long]}
  292. MaskPtr = $31A;                 {[GLOBAL VAR]  Memory Manager Pointer Mask [long]}
  293. MinStack = $31E;                {[GLOBAL VAR] Minimum space allotment for stack (long)
  294.    min stack size used in InitApplZone [long]}
  295. DefltStack = $322;              {[GLOBAL VAR] Default space allotment for stack (long) 
  296.    default size of stack [long]}
  297. MMDefFlags = $326;              {[GLOBAL VAR]  default zone flags [word]}
  298. DSAlertTab = $2BA;              {[GLOBAL VAR] Pointer to system error alert table in use
  299.    system error alerts [pointer]}
  300. DSAlertRect = $3F8;             {[GLOBAL VAR] Rectangle enclosing system error alert (8 bytes)
  301.    rectangle for disk-switch alert [8 bytes]}
  302. DSDrawProc = $334;              {[GLOBAL VAR]  alternate syserror draw procedure [pointer]}
  303. DSWndUpdate = $15D;             {[GLOBAL VAR]  GNE not to paintBehind DS AlertRect? [byte]}
  304. WWExist = $8F2;                 {[GLOBAL VAR]  window manager initialized? [byte]}
  305. QDExist = $8F3;                 {[GLOBAL VAR]  quickdraw is initialized [byte]}
  306. ResumeProc = $A8C;              {[GLOBAL VAR] Address of resume procedure
  307.    Resume procedure from InitDialogs [pointer]}
  308. DSErrCode = $AF0;               {[GLOBAL VAR] Current system error ID (word)
  309.    last system error alert ID}
  310. IntFlag = $15F;                 {[GLOBAL VAR]  reduce interrupt disable time when bit 7 = 0}
  311. SerialVars = $2D0;              {[GLOBAL VAR]  async driver variables [16 bytes]}
  312. ABusVars = $2D8;                {[GLOBAL VAR] Pointer to AppleTalk variables
  313.   ;Pointer to AppleTalk local variables}
  314. ABusDCE = $2DC;                 {[GLOBAL VAR] ;Pointer to AppleTalk DCE}
  315. PortAUse = $290;                {[GLOBAL VAR]  bit 7: 1 = not in use, 0 = in use}
  316. PortBUse = $291;                {[GLOBAL VAR] Current availability of serial port B (byte)
  317.    port B use, same format as PortAUse}
  318. SCCASts = $2CE;                 {[GLOBAL VAR]  SCC read reg 0 last ext/sts rupt - A [byte]}
  319. SCCBSts = $2CF;                 {[GLOBAL VAR]  SCC read reg 0 last ext/sts rupt - B [byte]}
  320. DskErr = $142;                  {[GLOBAL VAR]  disk routine result code [word]}
  321. PWMBuf2 = $312;                 {[GLOBAL VAR]  PWM buffer 1 (or 2 if sound) [pointer]}
  322. SoundPtr = $262;                {[GLOBAL VAR] Pointer to four-tone record
  323.    4VE sound definition table [pointer]}
  324. SoundBase = $266;               {[GLOBAL VAR] Pointer to free-form synthesizer buffer
  325.    sound bitMap [pointer]}
  326. SoundVBL = $26A;                {[GLOBAL VAR]  vertical retrace control element [16 bytes]}
  327. SoundDCE = $27A;                {[GLOBAL VAR]  sound driver DCE [pointer]}
  328. SoundActive = $27E;             {[GLOBAL VAR]  sound is active? [byte]}
  329. SoundLevel = $27F;              {[GLOBAL VAR] Amplitude in 740-byte buffer (byte)
  330.    current level in buffer [byte]}
  331. CurPitch = $280;                {[GLOBAL VAR] Value of count in square-wave synthesizer buffer (word)
  332.    current pitch value [word]}
  333. DskVerify = $12C;               {[GLOBAL VAR]  used by 3.5 disk driver for read/verify [byte]}
  334. TagData = $2FA;                 {[GLOBAL VAR]  sector tag info for disk drivers [14 bytes]}
  335. BufTgFNum = $2FC;               {[GLOBAL VAR] File tags buffer:  file number (long)
  336.    file number [long]}
  337. BufTgFFlg = $300;               {[GLOBAL VAR] File tags buffer:  flags (word:  bit 1=1 if resource fork) 
  338.    flags [word]}
  339. BufTgFBkNum = $302;             {[GLOBAL VAR] File tags buffer:  logical block number (word)
  340.    logical block number [word]}
  341. BufTgDate = $304;               {[GLOBAL VAR] File tags buffer:  date and time of last modification (long)
  342.    time stamp [word]}
  343. ScrDmpEnb = $2F8;               {[GLOBAL VAR] 0 if GetNextEvent shouldn't process Command-Shift-number combinations (byte)
  344.    screen dump enabled? [byte]}
  345. ScrDmpType = $2F9;              {[GLOBAL VAR]  FF dumps screen, FE dumps front window [byte]}
  346. ScrapVars = $960;               {[GLOBAL VAR]  scrap manager variables [32 bytes]}
  347. ScrapInfo = $960;               {[GLOBAL VAR]  scrap length [long]}
  348. ScrapEnd = $980;                {[GLOBAL VAR]  end of scrap vars}
  349. ScrapTag = $970;                {[GLOBAL VAR]  scrap file name [STRING[15]]}
  350. LaunchFlag = $902;              {[GLOBAL VAR]  from launch or chain [byte]}
  351. SaveSegHandle = $930;           {[GLOBAL VAR]  seg 0 handle [handle]}
  352. CurJTOffset = $934;             {[GLOBAL VAR] Offset to jump table from location pointed to by A5 (word)
  353.    current jump table offset [word]}
  354. CurPageOption = $936;           {[GLOBAL VAR] Sound/screen buffer configuration passed to Chain or Launch (word)
  355.    current page 2 configuration [word]}
  356. LoaderPBlock = $93A;            {[GLOBAL VAR]  param block for ExitToShell [10 bytes]}
  357. CurApRefNum = $900;             {[GLOBAL VAR] Reference number of current application's resource file (word)
  358.    refNum of application's resFile [word]}
  359. CurrentA5 = $904;               {[GLOBAL VAR] Address of boundary between application globals and application parameters
  360.    current value of A5 [pointer]}
  361. CurStackBase = $908;            {[GLOBAL VAR] Address of base of stack; start of application globals
  362.    current stack base [pointer]}
  363. CurApName = $910;               {[GLOBAL VAR] Name of current application (length byte followed by up to 31 characters)
  364.    name of application [STRING[31]]}
  365. LoadTrap = $12D;                {[GLOBAL VAR]  trap before launch? [byte]}
  366. SegHiEnable = $BB2;             {[GLOBAL VAR]  (byte) 0 to disable MoveHHi in LoadSeg}
  367.  
  368. { Window Manager Globals }
  369. WindowList = $9D6;              {[GLOBAL VAR] Pointer to first window in window list; 0 if using events but not windows
  370.   Z-ordered linked list of windows [pointer]}
  371. PaintWhite = $9DC;              {[GLOBAL VAR] Flag for whether to paint window white before update event (word)
  372.   erase newly drawn windows? [word]}
  373. WMgrPort = $9DE;                {[GLOBAL VAR] Pointer to Window Manager port 
  374.   window manager's grafport [pointer]}
  375. GrayRgn = $9EE;                 {[GLOBAL VAR] Handle to region drawn as desktop
  376.   rounded gray desk region [handle]}
  377. CurActivate = $A64;             {[GLOBAL VAR] Pointer to window to receive activate event
  378.   window slated for activate event [pointer]}
  379. CurDeactive = $A68;             {[GLOBAL VAR] Pointer to window to receive deactivate event
  380.   window slated for deactivate event [pointer]}
  381. DragHook = $9F6;                {[GLOBAL VAR] Address of procedure to execute during TrackGoAway, DragWindow, GrowWindow, DragGrayRgn, TrackControl, and DragControl
  382.   user hook during dragging [pointer]}
  383. DeskPattern = $A3C;             {[GLOBAL VAR] Pattern with which desktop is painted (8 bytes)
  384.   desk pattern [8 bytes]}
  385. DeskHook = $A6C;                {[GLOBAL VAR] Address of procedure for painting desktop or responding to clicks on desktop
  386.   hook for painting the desk [pointer]}
  387. GhostWindow = $A84;             {[GLOBAL VAR] Pointer to window never to be considered frontmost
  388.   window hidden from FrontWindow [pointer]}
  389.  
  390. { Text Edit Globals }
  391. TEDoText = $A70;                {[GLOBAL VAR] Address of TextEdit multi-purpose routine
  392.   textEdit doText proc hook [pointer]}
  393. TERecal = $A74;                 {[GLOBAL VAR] Address of routine to recalculate line starts for TextEdit
  394.   textEdit recalText proc hook [pointer]}
  395. TEScrpLength = $AB0;            {[GLOBAL VAR] Size in bytes of TextEdit scrap (long)
  396.   textEdit Scrap Length [word]}
  397. TEScrpHandle = $AB4;            {[GLOBAL VAR] Handle to TextEdit scrap
  398.   textEdit Scrap [handle]}
  399. TEWdBreak = $AF6;               {[GLOBAL VAR] default word break routine [pointer]}
  400. WordRedraw = $BA5;              {[GLOBAL VAR] (byte) - used by TextEdit RecalDraw}
  401. TESysJust = $BAC;               {[GLOBAL VAR] (word) system justification (intl. textEdit)}
  402.  
  403. { Resource Manager Globals }
  404. TopMapHndl = $A50;              {[GLOBAL VAR] Handle to resource map of most recently opened resource file
  405.   topmost map in list [handle]}
  406. SysMapHndl = $A54;              {[GLOBAL VAR] Handle to map of system resource file
  407.   system map [handle]}
  408. SysMap = $A58;                  {[GLOBAL VAR] Reference number of system resource file (word)
  409.   reference number of system map [word]}
  410. CurMap = $A5A;                  {[GLOBAL VAR] Reference number of current resource file (word) 
  411.   reference number of current map [word]}
  412. ResReadOnly = $A5C;             {[GLOBAL VAR] Read only flag [word]}
  413. ResLoad = $A5E;                 {[GLOBAL VAR] Current SetResLoad state (word)
  414.   Auto-load feature [word]}
  415. ResErr = $A60;                  {[GLOBAL VAR] Current value of ResError (word)
  416.   Resource error code [word]}
  417. ResErrProc = $AF2;              {[GLOBAL VAR] Address of resource error procedure
  418.   Resource error procedure [pointer]}
  419. SysResName = $AD8;              {[GLOBAL VAR] Name of system resource file (length byte followed by up to 19 characters)
  420.   Name of system resource file [STRING[19]]}
  421. RomMapInsert = $B9E;            {[GLOBAL VAR] (byte) determines if we should link in map}
  422. TmpResLoad = $B9F;              {[GLOBAL VAR] second byte is temporary ResLoad value.}
  423.  
  424. { Menu Mgr globals }
  425. MBarHeight = $BAA;              {[GLOBAL VAR] height of the menu bar}
  426.  
  427. { CommToolbox Global }
  428. CommToolboxGlobals = $0BB4;     {[GLOBAL VAR] pointer to CommToolbox globals }
  429.  
  430.  
  431. {$ENDC}    { UsingSysEqu }
  432.  
  433. {$IFC NOT UsingIncludes}
  434.     END.
  435. {$ENDC}
  436.  
  437.